package zp_member_com_v1

import "context"
import "github.com/gogf/gf/v2/encoding/gjson"
import "github.com/gogf/gf/v2/frame/g"/*
s.Group("/", func(group *ghttp.RouterGroup) {
	group.Group("/", func(group *ghttp.RouterGroup) {
		group.Bind(controller.ZpMemberComV1Controller)
	})
})
*/
var ZpMemberComV1Controller = cZpMemberComV1Controller{}
type cZpMemberComV1Controller struct{}
type GetMemberPositionListReq struct {
	g.Meta `path:"zp_member_com_v1/getMemberPositionList" method:"POST" summary:""`
	Page string `json:"page" dc:"1"`
	State string `json:"state" dc:"0"`
	Any string `json:"any" dc:"zp_member_com_v1/getMemberPositionList"`
}
type ZpMemberComV1Data struct {
}

type GetMemberPositionListRes struct {
Total	float64	`json:"total"`
PerPage	float64	`json:"per_page"`
CurrentPage	float64	`json:"current_page"`
LastPage	float64	`json:"last_page"`
Data	ZpMemberComV1Data	`json:"data"`
}

func (a *cZpMemberComV1Controller) GetMemberPositionListAction(ctx context.Context, req *GetMemberPositionListReq) (res *GetMemberPositionListRes, err error) {
	res = &GetMemberPositionListRes{}
	data:=`{"current_page":1,"data":[],"last_page":0,"per_page":15,"total":0}`
	js:=gjson.New(data)
	js.Scan(&res)
	return
}
type QueryTheRemainingTimesReq struct {
	g.Meta `path:"zp_member_com_v1/queryTheRemainingTimes" method:"POST" summary:""`
	Any string `json:"any" dc:"zp_member_com_v1/queryTheRemainingTimes"`
}
type QueryTheRemainingTimesRes struct {
RefreshNum	float64	`json:"refresh_num"`
CompanyVipTop	float64	`json:"company_vip_top"`
}

func (a *cZpMemberComV1Controller) QueryTheRemainingTimesAction(ctx context.Context, req *QueryTheRemainingTimesReq) (res *QueryTheRemainingTimesRes, err error) {
	res = &QueryTheRemainingTimesRes{}
	data:=`{"company_vip_top":0,"refresh_num":2}`
	js:=gjson.New(data)
	js.Scan(&res)
	return
}
type WxewmReq struct {
	g.Meta `path:"zp_member_com_v1/wxewm" method:"POST" summary:""`
	Any string `json:"any" dc:"zp_member_com_v1/wxewm"`
}
type WxewmRes struct {
Qrcode	string	`json:"qrcode"`
BgImage	string	`json:"bg_image"`
}

func (a *cZpMemberComV1Controller) WxewmAction(ctx context.Context, req *WxewmReq) (res *WxewmRes, err error) {
	res = &WxewmRes{}
	data:=`{"bgImage":"https://mp.wanhedashuju.com/uploads/20220822/e984f9fd9f04e1ebcf212555c7143710.png","qrcode":"https://mp.wanhedashuju.com/code/1674012534code.png"}`
	js:=gjson.New(data)
	js.Scan(&res)
	return
}